<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:setBundle basename="messages.messages"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<link rel="stylesheet" href="/Epics/jslib/global.css" />
<script src="/Epics/jslib/jquery-1.9.1.js"></script>

<style type="text/css">
	#printMessage{
		color: red;
	}
</style>

<script type="text/javascript">
	$(document).ready(
			function() {
				$("#inputForm").submit(
						function() {
							if(($("input[name=mail]").val())==''){
								$("p[id=printMessage]").text(
									"Empty mail").show();
								return false;
							}
							if(($("input[name=password]").val())==''){
								$("p[id=printMessage]").text(
									"Empty password").show();
								return false;
							}
						});
			});
</script>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><fmt:message key="siteName"/></title>
</head>
<body>
	<a href="SHome"><fmt:message key="home"/></a><br/>
	<%@ include file="../Template/TMessage.jsp"%>
	
	<form action="SLoginOut" method="post" id="inputForm">
		<table>
			<tr>
				<td><fmt:message key="messageInsertMail"/>:</td>
				<td><input type="text" name="mail" /></td>
			</tr>
			<tr>
				<td><fmt:message key="messageInsertPassword"/>:</td>
				<td><input type="password" name="password" /></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value=<fmt:message key="textLogin"/> /></td>
			</tr>
		</table>
	</form>
</body>
</html>